package com.qf.p1.dao;

import com.qf.p1.model.CourseTname;
import com.qf.p1.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 自定义的sql
 *
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.04.06
 * @since 1.0
 */
public interface CourseMapper {

    List<CourseTname>selectByPageNo(@Param("startPosition") Integer startPosition,
                                    @Param("pageSize") Integer pageSize,
                                    @Param("likeName") String likeName);



    List<CourseTname> selectUserId(@Param("userId")Integer userId);


    /**
     * 根据课程的id查对应的用户
     * @param cid
     * @return
     */
    List<User> selectUserByCid(@Param("cid") Integer cid);
}
